{extend name="default/users/base" /}
{block name="title"}举报商品 - 买家中心{__block__}{/block}
{block name="css"}
<link href="__STATIC__/plugins/validator/jquery.validator.css?v={$v}" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="__STATIC__/plugins/webuploader/webuploader.css?v={$v}" />
{/block}
{block name="content"}
<div class='wst-inform-content'>
<form id="informForm" method="post" >
 <input type='hidden' id='goodsId' class='ipt' value="{$data['data']['goodsId']}"/>
  <input type='hidden' id='shopsId' class='ipt' value="{$data['data']['shopId']}"/>
<div class="wst-inform-head"><span>举报商品</span></div>
   <div class='order-box wst-inform-box'>
   
	<div class='log-box inform-log-box' style="height: auto;" >
<div class="state">
  <div class="icon">
  	<span class="icons icon13 "></span>
  </div>
  <div class="arrow arrow2">··················></div>
  <div class="icon">
  	<span class="icons icon12 "></span>
  </div>
  <div class="arrow arrow2">··················></div>
  <div class="icon">
  	<span class="icons icon12 "></span>
  </div>
</div>
   <div class="state3" >
   <p>提交举报表单</p><p>等待管理员处理</p><p>完成举报</p>
   </div>
  
   <div class="wst-clear"></div>
  </div>
  </div>
   <div class="wst-inform-box">
   	<div class="title">被举报商家 ：</div><a  target='_blank' href="{:url('home/shops/home',array('shopId'=>$data['data']['shopId']))}">{$data['data']['shopName']}</a>
   	<div class="wst-clear"></div>
   </div>
   <!-- 订单信息 -->
   <div class='wst-inform-box'>
   	  <div class="title">
   	  	<span>相关商品 ：</span>
   	  </div>
      <div class="goods-img">
      	<a href="{:Url('home/goods/detail','goodsId='.$data['data']['goodsId'])}" target='_blank'>
      	<div class="wst-img"><img src="__RESOURCE_PATH__/{:WSTImg($data['data']['goodsImg'])}"></img></div>
      	</a>
      	<div class="wst-text">
      		<a href='{:Url("home/goods/detail","goodsId=".$data["data"]["goodsId"])}' target='_blank'>{$data['data']['goodsName']}</a>
      	</div>
      </div>
      <div class="wst-clear"></div>
   </div>
   <div class='wst-inform-box'>
   	<div class="title"><font color='red'>*</font>举报类型：</div>
   	 <div class="goods-img">
        {php}$reason = WSTDatas('INFORMS_TYPE');{/php}
        {volist name='reason' id='vo'}
        <label><input type='radio' name='informType' class='ipt' autocomplete="off" value='{$vo['dataVal']}' {if $key==1}checked{/if}>{$vo['dataName']}</label>
        {/volist}
     </div>  
     <div class="wst-clear"></div>
   </div>  
   <div class='wst-inform-box'>
   	<div class="title"><font color='red'>*</font>举报内容：</div>
   	<div class="goods-img">
      <textarea id='informContent' maxlength="200" onchange="this.value=this.value.substring(0, 200)" onkeydown="this.value=this.value.substring(0, 200)" onkeyup="this.value=this.value.substring(0, 200)" name="informContent" class='ipt' autocomplete="off" style='width:100%;height:155px;' placeholder='请输入举报内容'></textarea>
    </div>
    <div class="wst-clear"></div>
   </div>
   <div class='wst-inform-box' style="border-bottom: 1px solid transparent;">
       <div id="filePicker" style='margin-left:0px;width:250px;overflow:hidden;height:25px;'>上传附件(最多5张)</div>
   </div>
   <div class='wst-inform-box'>
   <table>
     <tr>
       <td colspan='2'>
           <div id='picBox' style='height:120px;width:612px;padding:5px;'></div>
       </td>
     </tr>
  </table>
  </div>
  <div class='wst-complain-footer'>
     <button onclick="javascript:saveInforms()" class="wst-sec-but u-btn">提交</button>
     <button onclick="javascript:history.go(-1)" class="wst-sec-but u-btn">返回</button>
  </div>
</form>
</div>
<div class="wst-remind">
	<div class="wst-inform-head" ><span>违规举报须知</span></div>
	<div class="content">
      <div class="alert">
        <ul>
          <li> 1.请提供充分的证据以确保举报成功，请珍惜您的会员权利，帮助商城更好地管理网站；</li>
          <li> 2.被举报待处理的商品不能反复进行违规提交，处理下架后的商品不能再次举报，商家如重新上架后仍存在违规现象，可再次对该商品进行违规举报；</li>
          <li> 3.举报仅针对商品或商家本身，如需处理交易中产生的纠纷，请选择投诉；</li>
          <li> 4.举报时依次选择举报类型及举报主题（必填），填写违规描述（必填，不超过200字），上传5张以内的举证图片（选填），详细的举报内容有助于平台对该条举报的准确处理。</li>
        </ul>
      </div>
    </div>
</div>
{/block}
{block name="js"}
<script type='text/javascript' src='__STYLE__/users/informs/informs.js?v={$v}'></script>
<script type="text/javascript" src="__STATIC__/plugins/validator/jquery.validator.min.js?v={$v}"></script>
<script type='text/javascript' src='__STATIC__/plugins/webuploader/webuploader.js?v={$v}'></script>
<script>
$(function(){
  userComplainInit();
})
</script>
{/block}
